#ifndef __SWO_H__
#define __SWO_H__


// event group bits
#define SWO_GOT_DATA 0x00000001
#define UART_GOT_DATA 0x00000002
#define SWO_ERROR_TIME_OUT 0x00000004

extern EventGroupHandle_t kSwoThreadEventGroup;
extern volatile uint8_t kSwoTransferBusy;
extern TaskHandle_t swo_task_handle; // SWO线程句柄

void SetTraceError(uint8_t flag); // Use in the uart handler
uint8_t uart_num_is_swo(uint8_t uart_num);
void swo_init(void);

#endif